FROM node:18.16.0
COPY . /tools-page
WORKDIR /tools-page
USER root
RUN npm config set registry https://registry.npm.taobao.org
RUN npm install
EXPOSE 3000
CMD npm run build && npm start